<template>
  <div class="product-box">
    <h1>食物 超级好吃的{{ title }}</h1>
    <p>价格 {{ price }}元</p>
    <p>{{ desc }}</p>
  </div>
</template>

<script>
export default {
  props: ["title", "price", "desc"],
};
</script>

<style scoped lang="less">
.product-box {
  width: 500px;
  border: 1px solid black;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  transition: 0.5s;
  &:hover {
    box-shadow: 2px 2px 2px 2px;
    transform: translateY(-5px);
  }
}
</style>